#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>


int main()
{
	int arr[10] = { 10,9,7,8,6,4,5,3,2,1 };
	int sz = sizeof(arr) / sizeof(arr[0]);
	int tmp = 0;
	int i = 0;
	int j = 0;
	for (i = 0; i < sz - 1; i++)
	{
		for (j = 0; j < sz - 1; j++)
		{
			if (arr[j] > arr[j + 1])
			{
				tmp = arr[j];
				arr[j] = arr[j + 1];
				arr[j + 1] = tmp;
			}
		}
	}
	int m = 0;
	for (m = 0; m < sz - 1; m++)
	{
		printf("%d ", arr[m]);
	}
	printf("\n");
}